<?php

namespace app\admin\model;

use think\Model;

/**
 * ActivityPerform
 */
class SpecialActivityPerform extends Model
{
    // 表名
    protected $name = 'special_activity_perform';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function specialActivity(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\SpecialActivity::class, 'special_activity_id', 'id');
    }

    public function specialActivityTimes(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\SpecialActivityTimes::class, 'special_activity_times_id', 'id');
    }
}